DISCUSSION
The
ATSUPasteFromHandle function does not produce the correct data format for displaying ATSUI style data. You should instead use the clipboard data block format described in
ustl when you want to provide clipboard support or copy and paste styled text between applications or within an application.